import layout from '@/layout'

export default {
    path: '/employee', //路径
    component: layout, //一级路由
    name: 'employee',
    children: [
        {
            path: '',
            component: () => import('@/views/employee/index.vue'),
            name: 'employee',
            meta: {icon: 'people' , title: '员工管理'} //菜单图标和标题
        },
        {
            path: '/employee/detail/:id?',
            component: () => import('@/views/employee/detail.vue'),
            name: 'detail',
            meta: { title: '员工详情' },
            hidden: true
        }
    ]
}